package com.liujun.spring4.demo.annotation.aspect.methodpointcut.execution;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

/**
 * @author liujun
 * @version 0.0.1
 * @date 2018/10/01
 */
@Aspect
public class ExecutionAspect {
  // 匹配waiter的所有实现
  @Before(
      "execution(public * com.liujun.spring4.demo.annotation.aspect.baseClass.Waiter+.*(..))")
  //  //匹配com.liujun.spring4.demo.annotation.aspect.methodpointcut包下的greetTo方法
  //  @Before("execution(public *
  // com.liujun.spring4.demo.annotation.aspect.methodpointcut..*.greetTo(..))")
  public void runExecuctionAspect() {
    System.out.println("--------------spit flag----------------");
    System.out.println("ExecutionAspect runExecuctionAspect() executed!");
  }
}
